package com.learner.pojo.course;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
* @Description:  课程的详细介绍类
* @Author: ice2020x
* @Date: 2021/11/12
*/
@Data
@Entity
@Table(name ="course_detailed")
@EntityListeners(AuditingEntityListener.class)
public class CourseDetail implements Serializable {

    private static final long serialVersionUID = 778647245397436026L;
    @Id
    @Column(length = 32)
    private String id;

    /**
    * @Description: 课程介绍
    */
    private String description;

    /**
    * @Description: 课程概述
    * @Date: 2021/11/12
    */
    private String overview;

    /**
    * @Description: 授课目标
    */
    private String target;
    /**
    * @Description: 先修知识
    */
    private String ap;

    private String problem;

    private String resources;

    @Column(name = "introduce_video")
    private String introduceVideo;

    @Column(name = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @LastModifiedDate
    @Column(name = "gmt_modified")
    private Date gmtModified;
}
